package com.uzai.console.dto.dy.dytoken;

import com.uzai.console.dto.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @author liuqi
 * @date 2021年08月20日 11:09
 */
@ApiModel("抖音token信息详情参数")
public class DyTokenInfoDto extends BaseDto {
    @ApiModelProperty("主键id，添加时没有，修改时需要")
    private Long id;

    @ApiModelProperty("联盟账户")
    private String name;

    @ApiModelProperty("抖音id")
    private String appId;

    @ApiModelProperty("抖音授权key")
    private String accessToken;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("联盟类型(0-抖客联盟;1-穿山甲联盟)")
    private Integer tokenType;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public Integer getTokenType() {
        if(tokenType == null){
            tokenType = 1;  //修改时，如果为空，则为抖音穿山甲联盟
        }
        return tokenType;
    }

    public void setTokenType(Integer tokenType) {
        this.tokenType = tokenType;
    }
}
